﻿@model MaguenBrokersMVC.Models.SeguroViajes
@{
    ViewBag.Title = "Edit";
}
<h2>
    Edit</h2>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>SeguroViajes</legend>
        <div class="editor-label">
            @Html.LabelFor(model => model.Nombre)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nombre)
            @Html.ValidationMessageFor(model => model.Nombre)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Apellido)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Apellido)
            @Html.ValidationMessageFor(model => model.Apellido)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.TipoViajeId, "TipoViaje")
        </div>
        <div class="editor-field">
            @Html.DropDownList("TipoViajeId", String.Empty)
            @Html.ValidationMessageFor(model => model.TipoViajeId)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.OrigenId, "Origen")
        </div>
        <div class="editor-field">
            @Html.DropDownList("OrigenId", String.Empty)
            @Html.ValidationMessageFor(model => model.OrigenId)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.DestinoId, "Destino")
        </div>
        <div class="editor-field">
            @Html.DropDownList("DestinoId", String.Empty)
            @Html.ValidationMessageFor(model => model.DestinoId)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.FechaSalida)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FechaSalida)
            @Html.ValidationMessageFor(model => model.FechaSalida)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.FechaRegreso)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FechaRegreso)
            @Html.ValidationMessageFor(model => model.FechaRegreso)
        </div>
        <div class="editor-label">
            @Html.Label("Edades :")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Edades.Edad1)
            @Html.ValidationMessageFor(model => model.Edades.Edad1)
            @Html.EditorFor(model => model.Edades.Edad2)
            @Html.ValidationMessageFor(model => model.Edades.Edad2)
            @Html.EditorFor(model => model.Edades.Edad3)
            @Html.ValidationMessageFor(model => model.Edades.Edad3)
            @Html.EditorFor(model => model.Edades.Edad4)
            @Html.ValidationMessageFor(model => model.Edades.Edad4)
            @Html.EditorFor(model => model.Edades.Edad5)
            @Html.ValidationMessageFor(model => model.Edades.Edad5)
        </div>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("Back to List", "Index")
</div>
